<template>
  <div class="box">
    <el-container class="home-container">
      <el-header>
        <PageTop></PageTop>
        <!-- <TopNav></TopNav> -->
      </el-header>
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
        <el-footer>
          <Footer></Footer>
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Footer from "../components/Footer.vue";
import PageTop from "../components/PageTop.vue";
import TopNav from "@tradedigital/topnav/TopNav/index.vue";
</script>

<style lang="scss" scoped>
.box {
  height: 100%;
}

.home-container {
  height: 100%;
}
// 头部区域
.el-header {
  width: 100%;
  height: 90px !important;
  padding: 0;
}

// 主体区域
.el-main {
  background-color: #f5f7fa;
}
::v-deep(.el-main) {
  padding: 0px;
}
// 底部区域
.el-footer {
  width: 100%;
  position: relative;
  display: flex;
  height: 285px !important;
  justify-content: center;
  background-color: #222930;
}
// // 切换过渡
.fade-enter {
  opacity: 0;
}

.fade-leave {
  opacity: 1;
}

.fade-enter-active {
  transition: opacity 0.3s;
}

.fade-leave-active {
  opacity: 0;

  transition: opacity 0.3s;
}
</style>
